package com.neusoft.neuiotms.dcom.repository.malfunction;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcom.model.malfunction.MalfunctionCountersignatureApproval;

public interface MalfunctionCountersignatureApprovalRepository
        extends JpaRepository<MalfunctionCountersignatureApproval, Long> {

    MalfunctionCountersignatureApproval findByWorkNumAndTaskId(String workNum, String taskId);

    MalfunctionCountersignatureApproval findTopByWorkNumOrderByIdDesc(String workNum);

}
